<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var is_abundantNum = function(n){
        var sum = 0;
        var num = n -1;
        for (var i = num; i > 0; i--){
                if (n % i == 0)
                    sum += i;
        }
        
        if (sum > n)
            return (1);
        else
            return (0);
    }
    
    var arr = [];
    for (var i = 1; i <= 100 ; i++)
    {
      if (is_abundantNum(i))
          arr.push(i);
      
    }
    console.log(arr);
    
    
  </script>
</head>
<body>
  
</body>
</html>